package com.strategy.demo01;

/**
 * 报价系统
 */
public class PriceSystem {
    private MemberStrategy strategy;
    public PriceSystem(MemberStrategy strategy){
        this.strategy = strategy;
    }

    public double quote(double price){
        double quotePrice = this.strategy.calcPrice(price);
        return quotePrice;
    }
}
